package services;

import org.apache.commons.collections.Predicate;

import t4p.model.User;

public class UserPredicate implements Predicate{

	private String username;
	
	public UserPredicate(String p_username){
		this.username = p_username;
	}
	
		public boolean evaluate(Object a) {
			boolean _return = false;
			User myUser = (User) a;
			if(myUser.getUsername().equals(this.username))
				_return = true;
			return _return;
		}
	}
